<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" Inherits="CommunityServer.Controls.CSThemePage" MasterPageFile="../Common/master.Master" %>
<%@ Register TagPrefix="CSUserControl" TagName="UserBadgeArea" Src="UserBadgeArea.ascx" %>

<asp:Content ContentPlaceHolderID="bbcr" runat="server">
    <div class="CommonBreadCrumbArea">
        <div class="Common">
            <CSControl:UserData runat="server" LinkTo="profile" Property="DisplayName" />
             &raquo;
             <CSControl:UserData runat="server" LinkTo="favorites" ResourceName="EditProfile_Favorites_Title" />
        </div>
    </div>
</asp:Content>

<asp:Content ContentPlaceHolderID="tr" runat="server">
    <CSControl:Title runat="server" Tag="H1" CssClass="CommonTitle" EnableRendering="true" IncludeSiteName="true">
        <ContentTemplate><CSControl:UserData Property="DisplayName" runat="server" />'s <CSControl:ResourceControl runat="server" ResourceName="EditProfile_Favorites_Title" /></ContentTemplate>
    </CSControl:Title>
</asp:Content>

<asp:Content ContentPlaceHolderID="lcr" runat="server">

    <div class="CommonSidebar">
        <CSUserControl:UserBadgeArea runat="server" />
    </div>	    

</asp:Content>

<asp:Content ContentPlaceHolderID="bcr" runat="server">

	<div class="CommonContentBox">
	    <div class="CommonContentBoxHeaderForm">
            Show:
            
            <CSControl:ConditionalContent runat="server">
                <ContentConditions Operator="Or">
                    <CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="EqualTo" ComparisonValue="Posts" />
                    <CSControl:Conditions runat="server" Operator="Not"><CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="IsSetOrTrue" /></CSControl:Conditions>
                </ContentConditions>
                <TrueContentTemplate><CSControl:ModifiedUrl Tag="B" ResourceName="EditProfile_FavoritePosts_Title" QueryStringModification="Show=Posts&amp;PageIndex=1" runat="server" /></TrueContentTemplate>
                <FalseContentTemplate><CSControl:ModifiedUrl ResourceName="EditProfile_FavoritePosts_Title" QueryStringModification="Show=Posts&amp;PageIndex=1" runat="server" /></FalseContentTemplate>
            </CSControl:ConditionalContent>
            |
            <CSControl:ConditionalContent runat="server">
                <ContentConditions><CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="EqualTo" ComparisonValue="Sections" /></ContentConditions>
                <TrueContentTemplate><CSControl:ModifiedUrl Tag="B" ResourceName="EditProfile_FavoriteSections_Title" QueryStringModification="Show=Sections&amp;PageIndex=1" runat="server" /></TrueContentTemplate>
                <FalseContentTemplate><CSControl:ModifiedUrl ResourceName="EditProfile_FavoriteSections_Title" QueryStringModification="Show=Sections&amp;PageIndex=1" runat="server" /></FalseContentTemplate>
            </CSControl:ConditionalContent>
        </div>          
	
        <div class="CommonContentBoxContent">
            
            <CSControl:ConditionalContent runat="server">
                <DisplayConditions Operator="Or">
                    <CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="EqualTo" ComparisonValue="Posts" />
                    <CSControl:Conditions runat="server" Operator="Not"><CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="IsSetOrTrue" /></CSControl:Conditions>
                </DisplayConditions>
                <ContentConditions Operator="Or">
    	            <CSControl:UserPropertyValueComparison runat="server" ComparisonProperty="FavoritesShared" Operator="Contains" ComparisonValue="Post" />
    	            <CSControl:CurrentUserIsAccessingUserCondition runat="server" />
                </ContentConditions>
                <TrueContentTemplate>
                    <CSControl:PostList runat="server" ID="FavoritePosts" ShowHeaderFooterOnNone="false">
                        <QueryOverrides QueryType="CurrentUserFavorites" PageSize="10" PagerID="PostPager" />
                        <HeaderTemplate>
	                        <div class="CommonAvatarListItemsArea">
		                        <ul class="CommonAvatarListItemList">
	                    </HeaderTemplate>
	                    <ItemTemplate>
	                        <CSControl:PostData runat="server" Property="ApplicationType" Text="&lt;li class=&quot;CommonAvatarListItemArea {0}&quot;&gt;" />
	                            <CSControl:PostData runat="server" Property="Subject" LinkTo="ViewPost" Tag="h4" CssClass="CommonAvatarListItemName" />
		                        <div class="CommonAvatarListItem">
			                        <CSControl:PostData runat="server" Property="Body" TruncateAt="250" />
		                        </div>
		                        <div class="CommonAvatarListItemDetails">
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_PostTo" />
			                        <CSControl:SectionData Property="Name" LinkTo="SectionHome" runat="server" />
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_By" />
			                        <CSControl:UserData LinkTo="Profile" runat="server" Property="DisplayName" />
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_On" />
			                        <CSControl:PostData Property="PostDate" runat="server" />
		                        </div>
		                        <CSControl:PostCheckBox runat="server" Name="FavoritePost">
		                            <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
		                            <LeaderTemplate><div class="CommonFormArea"><div class="CommonFormFieldName"></LeaderTemplate>
		                            <TrailerTemplate> Mark for deletion</div></div></TrailerTemplate>
		                        </CSControl:PostCheckBox>
		                    </li>
	                    </ItemTemplate>
	                    <AlternatingItemTemplate>
	                        <CSControl:PostData runat="server" Property="ApplicationType" Text="&lt;li class=&quot;CommonAvatarListItemArea {0} Alt&quot;&gt;" />
	                            <CSControl:PostData runat="server" Property="Subject" LinkTo="ViewPost" Tag="h4" CssClass="CommonAvatarListItemName" />
		                        <div class="CommonAvatarListItem">
			                        <CSControl:PostData runat="server" Property="Body" TruncateAt="250" />
		                        </div>
		                        <div class="CommonAvatarListItemDetails">
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_PostTo" />
			                        <CSControl:SectionData Property="Name" LinkTo="SectionHome" runat="server" />
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_By" />
			                        <CSControl:UserData LinkTo="Profile" runat="server" Property="DisplayName" />
			                        <CSControl:ResourceControl runat="server" ResourceName="SearchResults_On" />
			                        <CSControl:PostData Property="PostDate" runat="server" />
		                        </div>
		                        <CSControl:PostCheckBox runat="server" Name="FavoritePost">
		                            <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
		                            <LeaderTemplate><div class="CommonFormArea"><div class="CommonFormFieldName"></LeaderTemplate>
		                            <TrailerTemplate> Mark for deletion</div></div></TrailerTemplate>
		                        </CSControl:PostCheckBox>
		                    </li>
	                    </AlternatingItemTemplate>
	                    <FooterTemplate>
		                        </ul>
                            </div>
	                    </FooterTemplate>
                        <NoneTemplate>
                            <CSControl:UserData runat="server" Property="DisplayName" /> has not identified any favorite posts.
                        </NoneTemplate>
                    </CSControl:PostList>
                    
                    <CSControl:DeleteFavoritePostsForm runat="server" PostCheckboxName="FavoritePost" SubmitButtonId="DeletePosts">
                        <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
                        <SuccessActions><CSControl:GoToModifiedUrlAction runat="server" /></SuccessActions>
                        <FormTemplate>
                            <div class="CommonFormArea"><div class="CommonFormFieldName">
                                <asp:Button runat="server" ID="DeletePosts" Text="Delete Marked Favorites" />
                            </div></div>
                        </FormTemplate>
                    </CSControl:DeleteFavoritePostsForm>
                    
                    <CSControl:Pager runat="server" ShowTotalSummary="true" ID="PostPager">
                        <LeaderTemplate></div><div class="CommonContentBoxFooter"></LeaderTemplate>
                    </CSControl:Pager>
                    
                </TrueContentTemplate>
                <FalseContentTemplate>
                    <CSControl:UserData runat="server" Property="DisplayName" /> is not sharing favorite posts.
                </FalseContentTemplate>
            </CSControl:ConditionalContent>
            
            <CSControl:ConditionalContent runat="server">
                <DisplayConditions><CSControl:QueryStringPropertyValueComparison runat="server" QueryStringProperty="Show" Operator="EqualTo" ComparisonValue="Sections" /></DisplayConditions>
                <ContentConditions Operator="Or">
    	            <CSControl:UserPropertyValueComparison runat="server" ComparisonProperty="FavoritesShared" Operator="Contains" ComparisonValue="Section" />
    	            <CSControl:CurrentUserIsAccessingUserCondition runat="server" />
                </ContentConditions>
                <TrueContentTemplate>
                    <CSControl:SectionList runat="server" ID="FavoriteSections" ShowHeaderFooterOnNone="false">
                        <QueryOverrides QueryType="CurrentUserFavorites" PageSize="10" PagerID="SectionPager" />
                        <HeaderTemplate>
	                        <div class="CommonAvatarListItemsArea">
		                        <ul class="CommonAvatarListItemList">
	                    </HeaderTemplate>
	                    <ItemTemplate>
	                        <CSControl:SectionData runat="server" Property="ApplicationType" Text="&lt;li class=&quot;CommonAvatarListItemArea {0}&quot;&gt;" />
	                            <CSControl:SectionData runat="server" Property="Name" LinkTo="SectionHome" Tag="h4" CssClass="CommonAvatarListItemName" />
		                        <div class="CommonAvatarListItem">
			                        <CSControl:SectionData runat="server" Property="Description" TruncateAt="250" />
		                        </div>
		                        <div class="CommonAvatarListItemDetails">
		                        </div>
		                        <CSControl:SectionCheckBox runat="server" Name="FavoriteSection">
		                            <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
		                            <LeaderTemplate><div class="CommonFormArea"><div class="CommonFormFieldName"></LeaderTemplate>
		                            <TrailerTemplate> Mark for deletion</div></div></TrailerTemplate>
		                        </CSControl:SectionCheckBox>
		                    </li>
	                    </ItemTemplate>
	                    <AlternatingItemTemplate>
	                        <CSControl:SectionData runat="server" Property="ApplicationType" Text="&lt;li class=&quot;CommonAvatarListItemArea {0} Alt&quot;&gt;" />
	                            <CSControl:SectionData runat="server" Property="Name" LinkTo="SectionHome" Tag="h4" CssClass="CommonAvatarListItemName" />
		                        <div class="CommonAvatarListItem">
			                        <CSControl:SectionData runat="server" Property="Description" TruncateAt="250" />
		                        </div>
		                        <div class="CommonAvatarListItemDetails">
		                        </div>
		                        <CSControl:SectionCheckBox runat="server" Name="FavoriteSection">
		                            <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
		                            <LeaderTemplate><div class="CommonFormArea"><div class="CommonFormFieldName"></LeaderTemplate>
		                            <TrailerTemplate> Mark for deletion</div></div></TrailerTemplate>
		                        </CSControl:SectionCheckBox>
		                    </li>
	                    </AlternatingItemTemplate>
	                    <FooterTemplate>
		                        </ul>
                            </div>
	                    </FooterTemplate>
                        <NoneTemplate>
                            <CSControl:UserData runat="server" Property="DisplayName" ResourceName="EditProfile_Favorites_None" />
                        </NoneTemplate>
                    </CSControl:SectionList>
                    
                    <CSControl:DeleteFavoriteSectionsForm runat="server" SectionCheckboxName="FavoriteSection" SubmitButtonId="DeleteSections">
                        <DisplayConditions><CSControl:CurrentUserIsAccessingUserCondition runat="server" UsePageLevelContext="true" /></DisplayConditions>
                        <SuccessActions><CSControl:GoToModifiedUrlAction runat="server" /></SuccessActions>
                        <FormTemplate>
                            <div class="CommonFormArea"><div class="CommonFormFieldName">
                                <asp:Button runat="server" ID="DeleteSections" Text="Delete Marked Favorites" />
                            </div></div>
                        </FormTemplate>
                    </CSControl:DeleteFavoriteSectionsForm>
                    
                    <CSControl:Pager runat="server" ShowTotalSummary="true" ID="SectionPager">
                        <LeaderTemplate></div><div class="CommonContentBoxFooter"></LeaderTemplate>
                    </CSControl:Pager>
                    
                 </TrueContentTemplate>
                <FalseContentTemplate>
                    <CSControl:UserData runat="server" Property="DisplayName" /> is not sharing favorite sections.
                </FalseContentTemplate>
            </CSControl:ConditionalContent>

            
            
        </div>
    </div>
	
</asp:Content>

<asp:Content ContentPlaceHolderID="rcr" runat="server"></asp:Content>